cmake_minimum_required(VERSION 3.10)

# 项目名称
project(cpp_base)

# 设置C++标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(fmt REQUIRED)
find_package(nlohmann_json REQUIRED)

add_library(pystring STATIC src/pystring.cpp)
target_include_directories(pystring PUBLIC include)
add_executable(main src/main.cpp)

target_include_directories(main PUBLIC include)
target_link_libraries(main fmt::fmt)
target_link_libraries(main nlohmann_json::nlohmann_json)
target_link_libraries(main pystring)